package com.ding.learn.config;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestRandom {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        int r = (int) ((Math.random() * 9 + 1) * 100);
        String result  = 156+"_"+sdf.format(new Date())+ r;
        System.out.println(result);
        if(result.contains("_")) {
            System.out.println(result.substring(0,result.indexOf("_")));
        }
        Boolean a = false;
        boolean b = true;
        String c = "3232";
        int aa =23;
        Integer bb = 111;
        byte i = (byte) 355553;
        System.out.println(i);
    }
}
